const prefixUrl = '/web/customer/pool/'
import request from '@/utils/request'

// 客户池
export function page(params) {
  return request({
    url: prefixUrl + 'page',
    method: 'get',
    params
  })
}

// 公海
export function publicSea(params) {
  return request({
    url: prefixUrl + 'public/sea',
    method: 'get',
    params
  })
}

// 审核列表
export function checkRecordPage(params) {
  return request({
    url: prefixUrl + 'check/record/page',
    method: 'get',
    params
  })
}

// 指派
export function distribute(params) {
  return request({
    url: prefixUrl + 'distribute',
    method: 'post',
    params
  })
}

// 解除// 释放公海
export function relieve(params) {
  return request({
    url: prefixUrl + 'relieve',
    method: 'post',
    params
  })
}

// 修改分配属性
export function updateCanAssign(params) {
  return request({
    url: prefixUrl + 'update/canAssign',
    method: 'post',
    params
  })
}

// 查询客户维护人是否为公司人员
export function checkCustomerMaintain(params) {
  return request({
    url: prefixUrl + 'checkCustomerMaintain',
    method: 'get',
    params
  })
}

// 释放公海
export function release(params) {
  return request({
    url: prefixUrl + 'release',
    method: 'post',
    params
  })
}



